<?php if (!defined('THINK_PATH')) exit();?><form id="pagerForm" action="/index.php?s=/Admin/Welfare/index" method="post">
    <input type="hidden" name="pageNum" value="<?php echo ($page['pageNum']); ?>"/>
<input type="hidden" name="numPerPage" value="<?php echo ($page['numPerPage']); ?>" />
    <input type="hidden" name="pid" value="<?php echo ($search['pid']); ?>" />
    <input type="hidden" name="pidSort" value="<?php echo ($search['pidSort']); ?>" />
</form>

<script type="text/javascript" src="/Public/Admin/Js/twoLinkage.js"></script>
<script type="text/javascript">
$( function() {
	var parentObj = $('select[name="pidSort"]');
        var subObj = $('select[name="secondpid"]');
	$.twoLinkage( parentObj, subObj );
        
        var parentObj = $('select[name="secondpid"]');
        var subObj = $('select[name="pid"]');
	$.twoLinkage( parentObj, subObj );
} );
</script>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="/index.php?s=/Admin/Welfare/index" method="post">
    <div class="searchBar">
        <ul class="searchContent">
            <li>
                <label>收货方联系人：</label>
				<input type="text" value="" name="brand">
            </li>
			<li>
                <label>收货方联系电话：</label>
				<input type="text" value="" name="color">
            </li>
			<li>
                <label>订单类型：</label>
				<select name="types">
				  <option value="请选择">请选择</option>
				  <option value="未完成">未完成</option>
				  <option value="已完成">已完成</option>
				  <option value="月结订单">月结订单</option>
				</select>
            </li>
			<li>选择时间：<input type="text" name="checktime" style="width:110px" value="" class="date"  dateFmt="yyyy-MM-dd" minDate="{%y-1}-%M-%d" /></li>
        </ul>
        <div class="subBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
            </ul>
        </div>
    </div>
    </form>
</div>

<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <!--<li>
                <a href="/index.php?s=/Admin/Welfare/add" class="add" rel="add" target="navTab"  title="添加"> 
                    <span>添加</span>
                </a>
            </li>
            <li class="line">line</li>-->
           <!--  <li>
                <a href="/index.php?s=/Admin/Welfare/edit/id/{sid_user}" rel="edit" class="edit" target="navTab" title="编辑">
                    <span>编辑</span>
                </a>
            </li> -->
            <li class="line">line</li>
            <li>
                <a class="delete" href="/index.php?s=/Admin/Welfare/remove" target="selectedTodo" rel="id" posttype="string" title="你确定要批量删除吗？">
                    <i class="iconfont">&#xe612;</i>
                    <span>删除</span>
                </a>
            </li>
             <li>
                <a class="delete" style="background: #52acf0" href="/index.php?s=/Admin/Welfare/set_ticheng" target="dialog" width="400" height="240" title="设置提成费用">
                    <span style="background: #52acf0">提成费用设置</span>
                </a>
            </li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="206">
        <thead>
        <tr>
           <th width="2%"><input type="checkbox" group="id" class="checkboxCtrl" ></th>
            <th width="3%">编号</th>
            <th width="10%">发货方</th>
			<th width="12%">订单号</th>
            <th width="5%">联系人</th>
			<th width="9%">手机号码</th>
			<th width="8%">收货地址</th>
			<th width="8%">联系人</th>
            <th width="9%">手机号码</th>
			<!--
			<th width="5%">货物重量</th>
			<th width="5%">代收货款</th>
			-->
            <th width="5%">取货照片</th>
			<th width="5%">返货照片</th>
			<th width="5%">运费总额</th>
			<th width="12%">下单时间</th>
			<th width="5%">订单状态</th>
        </tr>
        </thead>
        <tbody>
        <?php if($dataList|count > 0): if(is_array($dataList)): $k = 0; $__LIST__ = $dataList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$volist): $mod = ($k % 2 );++$k;?><tr target="sid_user" rel="<?php echo ($volist['id']); ?>" >
                    <td><input name="id" value="<?php echo ($volist['id']); ?>" type="checkbox"></td>
                    <td><?php echo ( $page['pageNum'] - 1 ) * $page['numPerPage'] + $k;?></td>
                    <td><?php echo ($volist['title']); ?></td>
                    <td><?php echo ($volist['cost_price']); ?></td>
                    <td><?php echo ($volist['intro']); ?></td>
                    <td><?php echo ($volist['content']); ?></td>
					<td><?php echo ($volist['brandid']); ?></td>
					<td><?php echo ($volist['brand']); ?></td>
					<td><?php echo ($volist['color']); ?></td>

					<td>
					 <?php if($volist['pickup'] == ''): ?>无
						<?php else: ?>
							<a href="<?php echo ($volist['pickup']); ?>" title="<?php echo ($volist['pickup']); ?>" target="_blank" rel="example_group">
								<img src="<?php echo ($volist['pickup']); ?>" height="25" alt="<?php echo ($volist['pickup']); ?>" />
							</a><?php endif; ?>
					</td>
					<td>
					  <?php if($volist['returns'] == ''): ?>无
						<?php else: ?>
							<a href="<?php echo ($volist['returns']); ?>" title="<?php echo ($volist['returns']); ?>" target="_blank" rel="example_group">
								<img src="<?php echo ($volist['returns']); ?>" height="25" alt="<?php echo ($volist['returns']); ?>" />
							</a><?php endif; ?>
					</td>
					<td>￥<?php echo ($volist['member_price']); ?>.00</td>
					<!--
					<td><?php echo ($volist['stock']); ?></td>
					<td><?php if($volist["discount"] != ''): ?>￥<?php echo ($volist['discount']); ?>.00<?php else: ?>未代收<?php endif; ?></td>
					-->
					<td><?php echo date('Y-m-d H:i:s',$volist['create_time']);?></td>
					<td><?php if($volist["is_hot"] == 0): ?><span style="color:red">待处理</span><?php elseif($volist["is_hot"] == 1 OR $volist["is_hot"] == -1): ?><span style="color:#ff861b">处理中</span><?php elseif($volist["is_hot"] == 2): ?><span style="color:blue">配送中</span><?php elseif($volist["is_hot"] == 3): ?><span style="color:#1bff2d">已到达</span><?php else: ?><span style="color:#8b0512">退货</span><?php endif; ?></td>
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        <?php else: ?>
        	<tr><td colspan="10" style="text-align:center;">没有数据!!!</td></tr><?php endif; ?>
        </tbody>
    </table>
    <div class="panelBar" style="background:none;">
    <div class="pages">
        <span>显示</span>
        <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
            <?php if(is_array($page['numPerPageArray'])): foreach($page['numPerPageArray'] as $key=>$vo): ?><option value="<?php echo ($vo); ?>"<?php if($vo == $page['numPerPage']): ?>selected='selected'<?php endif; ?>><?php echo ($vo); ?></option><?php endforeach; endif; ?>
        </select>
        <span>条，共<?php echo ($page['all']); ?>条</span>
    </div>
    <div class="pagination" targetType="navTab" totalCount="<?php echo ($page['all']); ?>" numPerPage="<?php echo ($page['numPerPage']); ?>" pageNumShown="10" currentPage="<?php echo ($page['pageNum']); ?>"></div>
</div>
</div>